package lab01;

public class Test13 {
    public static void main(String[] args) {
        for(int i=100;i<1000;i++){
            int x=i/100;
            int y=i/10-x*10;
            int z=i%10;
            int m=x*x*x+y*y*y+z*z*z;
            if (m==i){
                System.out.println("数"+m+"是水仙花数");
            }
        }
    }
}
